<template>
	<web-view :src="webViewUrl"></web-view>
</template>

<script>
	export default {
		data() {
			return {
				webViewUrl: null
			}
		},
		onLoad(options) {
			this.webViewUrl = decodeURI(options.url);
			if (options.navName) {
				uni.showToast({
					title: '加载中...',
					icon: 'loading',
					duration: 3 * 1000
				})
				uni.setNavigationBarTitle({ title: options.navName });
			}
		},
		onShareAppMessage() {
			console.log('分享');
		},
	}
</script>

<style>
</style>
